-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(python): Add test coverage for _cpu_check
module
#14768
Conversation
if _POLARS_ARCH != "x86-64": | ||
return {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not possible to end up in this code path as non-x86-64 architectures have no features enabled which causes an early return. So I removed this check.
if _POLARS_ARCH != "x86-64": | ||
msg = "CPUID is only available for x86" | ||
raise SystemError(msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idem.
_cpu_check
module._cpu_check
module.
_cpu_check
module._cpu_check
module
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14768 +/- ##
==========================================
+ Coverage 80.91% 80.95% +0.04%
==========================================
Files 1324 1324
Lines 171907 171902 -5
Branches 2454 2452 -2
==========================================
+ Hits 139090 139166 +76
+ Misses 32349 32266 -83
- Partials 468 470 +2 ☔ View full report in Codecov by Sentry. |
No description provided.